//
//  MyTableViewCell.swift
//  serverMonitor
//
//  Created by joke on 16/1/1.
//  Copyright © 2016年 joke. All rights reserved.
//

import UIKit

class MyTableViewCell: UITableViewCell {

    @IBOutlet weak var monitorName: UILabel!
    @IBOutlet weak var cpuCore: UILabel!
    @IBOutlet weak var load: UILabel!
    @IBOutlet weak var diskPercent: UIProgressView!
    @IBOutlet weak var memoryPercent: UIProgressView!
    @IBOutlet weak var cachePercent: UIProgressView!




    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        //进度条方法
        diskPercent.transform = CGAffineTransformScale(diskPercent.transform, 1, 4)
        memoryPercent.transform = CGAffineTransformScale(memoryPercent.transform, 1, 4)
        cachePercent.transform = CGAffineTransformScale(cachePercent.transform, 1, 4)
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        //textfield自动换行
//        cpuModel.lineBreakMode = .ByWordWrapping
//        cpuModel.numberOfLines = 5
//        cpuModel.sizeToFit()
        //cpuModel.text = "Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz | 频率:2300.088 | 二级缓存:15360 KB | Bogomips:4600.17 ×8"
        

        
//        for label in labelGroupForShow {
//            label.textColor = UIColor.blueColor()
//        }
        // Configure the view for the selected state
    }
    
}
